package 程序;

import 程序.数组.数组;

public class This {
    //this关键字调用属性
    String name;

    public This(String name){
        this();
        this.name=name;
        System.out.println("有参方法被调用了");
    }
    public This(){
        System.out.println("无参方法被调用了");
    }
    //this关键字调用成员方法
    public void meow(){
        System.out.println("miaomiao");
    }
    public void sayhello(){
        this.meow();
    }
    //this调用构造方法
    public static void main(String[] args) {
        This t1 = new This("tom");

    }
}
